import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'


import sy from "./components/ShouYe.vue"
import fl from "./components/FenLei.vue"
import dd from "./components/DingDan.vue"
import wd from "./components/WoDe.vue"
import sing from "./components/Sing.vue"

Vue.use(VueRouter)

Vue.config.productionTip = false

const routes = [
  {
    path: '/',
    redirect: '/shouye'
  },
  {
    path: "/shouye",
    component:sy
  },
  {
    path: "/fenlei",
    component:fl
  },
  {
    path: "/dingdan",
    component:dd
  },
  {
    path: "/wode",
    component:wd
  },
  {
    path: '*',
    component:sing
  }
  
  
]

const router = new VueRouter({
  routes
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
